﻿@model PaymentHelper.Methods.PaypalStandard.Models.ConfigModel

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td>
                @Html.LabelFor(model => model.BusinessEmail)
            </td>
            <td>
                @Html.EditorFor(model => model.BusinessEmail)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.BusinessEmail)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.HandlingFee)
            </td>
            <td>
                @Html.EditorFor(model => model.HandlingFee)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.HandlingFee)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.EnableIPN)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.EnableIPN)
            </td>
            <td>
                &nbsp;
            </td>
        </tr>  
        <tr>
            <td>
                @Html.LabelFor(model => model.EnableUTF8Encoding)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.EnableUTF8Encoding)
            </td>
            <td>
                &nbsp;
            </td>
        </tr>      
        <tr>
            <td>
                @Html.LabelFor(model => model.OverrideAddress)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.OverrideAddress)
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.PassDetailListItems)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.PassDetailListItems)
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.UseSandBox)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.UseSandBox)
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <input type="submit" value="Save" name="SaveConfig" />
            </td>          
            <td>&nbsp;</td>  
        </tr>
    </table>
}

@if (ViewBag.PaypalStandardMessage != null)
{
    <p>@ViewBag.PaypalStandardMessage </p>
}

